home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1993 April: Penguin on DISC / ADC Developer CD (1993-04) (''Penguin On DISC'')_iso / Dev.CD Apr 93.iso / Utilities / MPW Interfaces 7.1 Beta / AIncludes / ROMEqu.a < prev    next >
Encoding:
Text File  |  1992-08-28  |  7.0 KB  |  182 lines  |  [TEXT/MPS ]

  1. ; Version: 3.16
  2. ; Created: Friday, October 20, 1989 at 9:44:53 PM
  3. ;
  4. ; File: ROMEqu.a
  5. ;
  6. ; Assembler Interface to the Macintosh Libraries
  7. ; Copyright Apple Computer, Inc. 1986-1992
  8. ; All Rights Reserved
  9. ;
  10. ; Description : This file contains the CONST definitions used by the
  11. ; Slot Manager and Declaration ROM's
  12. ;
  13. ;------------------------------------------------------------------------
  14.  
  15.     IF &TYPE('__IncludingROMEqu__') = 'UNDEFINED' THEN
  16. __IncludingROMEqu__    SET    1
  17.  
  18. ;*********************************************************************
  19. ; Constants
  20. ;*********************************************************************
  21.  
  22. ;=====================================================================
  23. ;Misc.
  24. ;=====================================================================
  25. defaultTO         EQU         100
  26. ;=====================================================================
  27. ;Format-Header
  28. ;=====================================================================
  29. appleFormat       EQU         1                         ;Format of Declaration Data (IEEE will assign real value)
  30. romRevision       EQU         1                         ;First ROM revision.
  31. romRevRange       EQU         9                         ;Revision of Declaration Data Format [1..9]
  32. testPattern       EQU         1519594439                ;FHeader long word test pattern
  33. ;=====================================================================
  34. ;sExec constants
  35. ;=====================================================================
  36. sExec2            EQU         2                         ;Revision of header {For sExec}.
  37. ;=====================================================================
  38. ;sExec constants
  39. ;=====================================================================
  40. sCPU68000         EQU         1                         ;CPU type = 68000
  41. sCPU68020         EQU         2                         ;CPU type = 68020
  42. sCPU68030         EQU         3                         ;CPU type = 68030            <1.3>
  43. sCPU68040        EQU            4                        ;CPU type = 68040            <1.4>
  44.  
  45. ;=====================================================================
  46. ;sDRVR directory constants
  47. ;=====================================================================
  48. sMacOS68000       EQU         1                         ;Mac OS, CPU type = 68000
  49. sMacOS68020       EQU         2                         ;Mac OS, CPU type = 68020
  50. sMacOS68030        EQU            3                        ;Mac OS, CPU type = 68030    <1.3>
  51. sMacOS68040        EQU            4                        ;Mac OS, CPU type = 68040    <1.4>
  52.  
  53.  
  54. ;=====================================================================
  55. ;sResource types
  56. ;=====================================================================
  57.  
  58. ;<Category>
  59. catBoard          EQU         $0001                    ;        <1.3>
  60. catTest           EQU         $0002                    ;        <1.3>
  61. catDisplay        EQU         $0003                    ;        <1.3>
  62. catNetwork        EQU         $0004                    ;        <1.3>
  63. CatCPU            EQU            $000A                    ;        <1.3>
  64.  
  65. ;<Type>
  66. typBoard          EQU         $0000                    ;        <1.3>                    
  67. typApple          EQU         $0001                    ;        <1.3>
  68. typVideo          EQU         $0001                    ;        <1.3>
  69. typEtherNet       EQU         $0001                    ;        <1.3>
  70.  
  71. Typ68000        EQU            $0002                    ;        <1.3>    
  72. Typ68020        EQU            $0003                    ;        <1.3>
  73. Typ68030        EQU            $0004                    ;        <1.3>
  74. Typ68040        EQU            $0005                    ;        <1.4>
  75.  
  76. ;Driver Interface : <id.SW>
  77. DrSwMacCPU        EQU            0                        ;         <1.3>
  78. drSwApple         EQU         1                        ;         <1.3>
  79.  
  80. ;Driver Interface : <id.SW><id.WH>
  81. drHwTFB           EQU         1
  82. drHwJMFB        EQU            25                        ; 4•8/8•24 ROM Support <11> rb
  83. drHw3Com          EQU         1
  84. drHwBSC           EQU         3
  85.  
  86.  
  87. ;=====================================================================
  88. ;Declaration ROM Id's
  89. ;=====================================================================
  90. ;---------------------------------------------------------------------
  91. ; Misc
  92. ;---------------------------------------------------------------------
  93. endOfList         EQU         255                       ;End of list
  94.  
  95.  
  96. ;---------------------------------------------------------------------
  97. ; sResource List. Category: All
  98. ;---------------------------------------------------------------------
  99. ;The following Id's are common to all sResources.
  100. sRsrcType         EQU         1                         ;Type of sResource
  101. sRsrcName         EQU         2                         ;Name of sResource
  102. sRsrcIcon         EQU         3                         ;Icon
  103. sRsrcDrvrDir      EQU         4                         ;Driver directory
  104. sRsrcLoadRec      EQU         5                         ;Load record
  105. sRsrcBootRec      EQU         6                         ;sBoot record
  106. sRsrcFlags        EQU         7                         ;sResource Flags
  107. sRsrcHWDevId      EQU         8                         ;Hardware Device Id
  108. minorBaseOS       EQU         10                        ;Offset to base of sResource in minor space.
  109. minorLength       EQU         11
  110. majorBaseOS       EQU         12                        ;Offset to base of sResource in Major space
  111. majorLength       EQU         13
  112. sRsrcTest         EQU         14                        ; sBlock diagnostic code
  113. sRsrcCIcon        EQU         15                        ; CQD color icon
  114. sRsrcIcl8        EQU            16                        ; 'icl8' 8-bit color icon data
  115. sRsrcIcl4        EQU            17                        ; 'icl4' 4-bit color icon data
  116.  
  117. sGammaDir        EQU            64                        ; spID for gamma directory
  118. sRsrcVidNames    EQU            65                        ; spID for video name directory
  119.  
  120. ;---------------------------------------------------------------------
  121. ; sResource List. Category: Board
  122. ;---------------------------------------------------------------------
  123. ;The following Id's are common to all Board sResources.
  124. boardId           EQU         32                        ;Board Id
  125. pRAMInitData      EQU         33                        ;sPRAM init data
  126. primaryInit       EQU         34                        ;Primary init record
  127. timeOutConst      EQU         35                        ;Time Out constant. 
  128. vendorInfo        EQU         36                        ;Vendor information List {See Vendor List, below}
  129. boardFlags        EQU         37                        ;Board Flags
  130. secondaryInit    EQU            38                        ;Secondary init record                <1.1>    
  131.  
  132. ;---------------------------------------------------------------------
  133. ; sResource List. Category: Board
  134. ;---------------------------------------------------------------------
  135. ;The following Id's are associated with all CPU sResources.
  136. MajRAMSp          EQU         129                       ;ID of Major RAM space.
  137. MinROMSp          EQU         130                       ;ID of Minor ROM space.
  138.  
  139.  
  140. ;---------------------------------------------------------------------
  141. ;Vendor List
  142. ;---------------------------------------------------------------------
  143. ;The following Id's are associated with the VendorInfo id
  144. vendorId          EQU         1                         ;Vendor Id
  145. serialNum         EQU         2                         ;Serial number
  146. revLevel          EQU         3                         ;Revision level
  147. partNum           EQU         4                         ;Part number
  148. Date              EQU         5                         ;ID of date field in vendor info list.
  149.  
  150.  
  151. ;---------------------------------------------------------------------
  152. ; sResource List. Category_Type: Test_One
  153. ;---------------------------------------------------------------------
  154. ;The following Id's are common to all Test_One_x sResources.
  155. testByte          EQU         32                        ;Test byte.
  156. testWord          EQU         33                        ;Test Word.
  157. testLong          EQU         34                        ;Test Long.
  158. testString        EQU         35                        ;Test String.
  159.  
  160.  
  161.  
  162. ;*************************************************************
  163. ;Macros
  164. ;*************************************************************
  165. ;=============================================================
  166. ; Offset List Entry
  167. ;=============================================================
  168.                   MACRO
  169.                   OSLstEntry  &Id,&Offset
  170.                   DC.L        (&Id<<24)++((&Offset-*)**$00FFFFFF)
  171.                   ENDM
  172.  
  173.  
  174. ;=============================================================
  175. ; Data List Entry
  176. ;=============================================================
  177.                   MACRO
  178.                   DatLstEntry &Id,&Data
  179.                   DC.L        (&Id<<24)+&Data
  180.                   ENDM
  181.  
  182.     ENDIF    ; ...already included